package com.wx.api.gateway;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.boot.CommandLineRunner;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.SpringCloudApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;

/**
 * @Description TODO
 * @Author lijing1@wxchina.com
 * @Date 2020/6/16 14:12
 **/
@SpringBootApplication
@EnableDiscoveryClient
public class ZuulApiGateWay implements CommandLineRunner {

    @Value("${MixKey}")
    //@Value("${hello}")
    private String mixkey;


    public static void main(String[] args) {
        SpringApplication.run(ZuulApiGateWay.class, args);
    }

    @Override
    public void run(String... args) throws Exception {
        System.out.println(mixkey);
    }
}
